<?php
header("Content-type: text/html; charset=utf-8");

if($_SERVER['REQUEST_METHOD'] == 'GET')
{
	echo '这是一个get请求';
	var_dump($_GET);
}else if($_SERVER['REQUEST_METHOD'] == 'POST')
{
	//echo '这是一个post请求';
	//var_dump($_POST);
	echo '<result ret="0" reason="处理成功" id="123"/>';
}

